package com.sale.system.dubbo;

import com.sale.system.api.RemoteExamineService;
import com.sale.system.api.domain.vo.SysAuditHistoryVo;
import com.sale.system.service.ISysExamineService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 审核dubbo实现
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteExamineServiceImpl implements RemoteExamineService {

    private final ISysExamineService sysExamineService;

    /**
     * 根据权限码进行审核
     */
    @Override
    public Integer getSequence(SysAuditHistoryVo sysAuditHistoryVo) throws Exception {
        return sysExamineService.getSequence(sysAuditHistoryVo);
    }

    /**
     * 修改审核类型
     */
    @Override
    public Integer editHistory(SysAuditHistoryVo sysAuditHistoryVo) {
        return sysExamineService.updateHistoryAppConfigEdit(sysAuditHistoryVo);
    }
}
